SJRIP RiverWare Model - November 2020
Run Control Information
Controller: Rulebased Simulation
Start: 24:00 October 1, 1928
End: 24:00 September 30, 2013
Timestep: 1 Day
Number of Timesteps: 31046
File Save History
Todd 11-16-2020 07:57:59 RiverWare 8.1.2
File Comment
SimObj Summary
| Type | Count |
|---|---|
| 3 | |
| 1 | |
| 9 | |
| 51 | |
| 9 | |
| 3 | |
| 3 | |
| 105 | |
| 3 | |
| 62 | |
| Total | 249 |
Subbasin: SimObj
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Referenced Functions
Once this is run once with correct data, this group can be turned off to speed up run time (by almost 5 minutes on my computer), as the final results are posted to the Water User Objects with Z (DMI Input) flag and thus will be retained by model throughout runs.
If any ETAC water user data is changed, make sure this group is on to catch up these calcs.
TV 3/3/16
This sets up the ETAC water users for the Baseline run. It propagates the irrigated areas (acres) and minimum efficiencies into their timeseries slots, and inputs the daily ET rates, which are chosen by selecting one of the previous three rules.
TV Jan 2016
Statements
Referenced Functions
This sets the "ETAC method" ET (CIR) rates to the water user objects using the daily ET rates from the new disaggregation/interpolation method completed in the prior Initialization Rules.
I recommend using this method, although it does extend run time.
TV Jan 2016
Statements
Referenced Functions
This sets the "ETAC method" ET (CIR) rates to the water user objects using the monthly average ET rates.
TV Jan 2016
Statements
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Referenced Functions
Statements
Statements
Referenced Functions
This ruleset is used to run the SJRIP RiverWare model.
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Computes Navajo release to meet demands with baseflow bypasses set.
Statements
Execution Constraint
Referenced Functions
Computes Navajo release to meet demands with baseflow bypasses set.
Statements
Execution Constraint
Referenced Functions
Sets engineering slot values from data object slot values.
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Computes Navajo release to meet demands with baseflow bypasses set.
Statements
Execution Constraint
Referenced Functions
Computes Navajo release to meet demands with baseflow bypasses set.
Statements
Execution Constraint
Referenced Functions
Computes Navajo release to meet demands with baseflow bypasses set.
Statements
Execution Constraint
Referenced Functions
Sets engineering slot values from data object slot values.
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Computes unadjusted flushing release and stores in a interim slot.
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Looks at Stateline gains flows for past n years and if sum of May and June
less than threshold (LookbackVolume) and release keeps Navajo ok,
make a maximum release. This is path 16 in pattern setting.
Statements
Execution Constraint
Referenced Functions
Looks at Stateline gains flows for past n years and if sum of May and June
less than threshold (LookbackVolume) and release keeps Navajo ok,
make a specified release. This is path 17 in pattern setting.
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Sets engineering slot values from data object slot values.
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Computes available for diversion (pumping) for normal ALP operation.
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Sets Heron Outflow as a function of demand and shortages.
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Sets Heron Outflow as a function of demand and shortages.
Statements
Execution Constraint
Referenced Functions
Sets Heron Outflow as a function of demand and shortages.
Statements
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Statements
Execution Constraint
Referenced Functions
Functions that support generic rule set.
Estimates furture reservoir evaporation form startDate (usually current time step)
thru endDate. Additional argument of meanArea is estimated average surface
area during interval.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes mean surface area for 2 storage values.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Returns previous elevation of reservoir.
Return Type: NUMERIC
Arguments:
Body
Returns previous storage of reservoir.
Return Type: NUMERIC
Arguments:
Body
Returns flow for given date from a lists of flows and dates.
Return Type: NUMERIC
Arguments:
Body
Inserts a date and value set into a list of flows and dates.
Return Type: LIST
Arguments:
Body
Makes a list of indeces for use in a For Loop.
Return Type: LIST
Arguments:
Body
Make a list of values for a given value and number of points.
Return Type: LIST
Arguments:
Body
Referenced Functions
Returns a list of dates and values.
Return Type: LIST
Arguments:
Body
Referenced Functions
Returns a string version of day of month given diminsionless day of month.
Return Type: STRING
Arguments:
Body
Returns string month given month.
Return Type: STRING
Arguments:
Body
Checks if dateA falls between dateB and dateC inclusively.
Return Type: BOOLEAN
Arguments:
Body
Returns end of month date given date.
Return Type: DATETIME
Arguments:
Body
Referenced Functions
Return Type: DATETIME
Arguments:
Body
Referenced Functions
Sums daily flows in provided list to a volume.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Sum specified flow value to a volume for specified time period.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Sums a periodic slot flow to a volume for specified time period.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes bypass flows using the three gage criteria.
Return Type: LIST
Arguments: None
Body
Referenced Functions
Return Type: STRING
Arguments:
Body
Referenced Functions
Return Type: LIST
Arguments:
Body
Referenced Functions
Computes maximum inflow that Heron can receive given expected release and current storage conditions.
Return Type: NUMERIC
Arguments: None
Body
Referenced Functions
Computes maximum inflow that Heron can receive given expected release and current storage conditions.
Return Type: NUMERIC
Arguments: None
Body
Referenced Functions
Return Type: NUMERIC
Arguments: None
Body
Referenced Functions
Get flushing flows release type given path, spill, and available water.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Sets path by 1996 BO Flow Recseration decision tree.
Return Type: NUMERIC
Arguments: None
Body
Referenced Functions
Makes a list of total excess volumes.
NOTE - I believe that BV has an error, or at least an inconsistency, between
the pre flushing release period and the during flushing release period.
He limits the during period to the peak release here whereas he does not
limit the pre flushing release here. DLK
Return Type: LIST
Arguments:
Body
Referenced Functions
Computes total flushing volume given release type.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes volume of nose water prior to flushing release.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Returns true if a perturbation occurred.
Return Type: BOOLEAN
Arguments: None
Body
Computes gains as per perturbation computations with default lagging.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes gains as per perturbation computations with default lagging.
Return Type: NUMERIC
Arguments:
Body
Returns peak duration adjusted to always be an odd number of unitless days.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Constrains flow for descending case.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Constrains flow for ascending case.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes maximum release type given supply.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Make list of flows as a hydrograph without nose water integrated with minimum release.
Return Type: LIST
Arguments:
Body
Referenced Functions
Computes additonal water volume as flushing hydrograph is encountered.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Returns flushing release start date from actual hydrograph.
Return Type: DATETIME
Arguments:
Body
Referenced Functions
Returns flushing release end date from actual hydrograph.
Return Type: DATETIME
Arguments:
Body
Referenced Functions
Applies average nose release to flushing flows.
Return Type: LIST
Arguments:
Body
Referenced Functions
Computes average nose release given excess volume that is available.
Returns a default flow when no excess water is available or we do not meet
the minimum.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Given excess volume available for nose water, locate it in incremental volumes list
and return equivalent flow.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Counts number of events that meet perturbation criteria.
Return Type: NUMERIC
Arguments: None
Body
Referenced Functions
Counts number of events that meet perturbation criteria.
Return Type: NUMERIC
Arguments: None
Body
Referenced Functions
Counts number of events that meet perturbation criteria.
Return Type: NUMERIC
Arguments: None
Body
Referenced Functions
Computes water not required to meet the incremental volume required by a given flushing release.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes Nose Adjusted Release
Return Type: LIST
Arguments:
Body
Referenced Functions
Estimates end of period Navajo content given anticipated release volume.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Returns a list of accumulated durations for the flushing flows.
Return Type: LIST
Arguments:
Body
Referenced Functions
Return Type: DATETIME
Arguments: None
Body
Referenced Functions
Returns unitless days of down ramp duration.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Returns total duration of flushing release.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Return Type: LIST
Arguments:
Body
Referenced Functions
Return Type: DATETIME
Arguments:
Body
Referenced Functions
Gets peak flow in flow duration table as a list.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Returns unitless days of peak duration unadjusted for odd number of days check.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Return Type: LIST
Arguments:
Body
Referenced Functions
Finds element in flow duration flows list where max flow is encountered.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Return Type: DATETIME
Arguments:
Body
Referenced Functions
Returns number of unitless days in up ramp portion of hydrograph.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Determines if a gage was short of lookup back volume for past n years for May and June.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Returns slot name of flow duration table given release type.
Return Type: SLOT
Arguments:
Body
Given a day of interest, return flow from flushing flows flow duration table.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Return Type: LIST
Arguments:
Body
Referenced Functions
Returns list of excess flows incremented by specified amount.
Return Type: LIST
Arguments:
Body
Referenced Functions
Computes incremental flushing volume.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Make list of flows as a hydrograph without nose water.
Return Type: LIST
Arguments:
Body
Referenced Functions
Computes available in reservoir in reference to target elevation of day or month.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes daily target storage as a function of daily target elevation.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes surplus volume for a reservoir by slot with no forecast error applied.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes total available water (surplus plus storage less reserve).
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
This utility group is used to support the special cases and evaporation adjustment
policy groups.
Computes actual incidental loss as a flow as a function of return flow and lagging pattern.
Return Type: NUMERIC
Arguments:
Body
Looks up incidental loss rate as a function of water user and delay pattern.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes subbasin incidental loss volume over specified period.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes water incidental loss volume for a period.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes requested incidental loss as a flow as a function of return flow and lagging pattern.
Return Type: NUMERIC
Arguments:
Body
Computes incidental loss volume for a basin given scenario and subbasin name.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Functions needed to use 1996 BO Flow Recseration operation.
No release type 1 releases with incremented releases.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
No release type 1. Maximum release for predicted spill otherwise.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
No release type 1 but some release if sufficient predicted spill.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
All release type 5 if sufficient spill and not path 17.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
No release type 1. Maximum release for predicted spill otherwise.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
No release type 1 but some release if sufficient predicted spill.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
All release type 5 if sufficient spill.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Return Type: NUMERIC
Arguments: None
Body
Referenced Functions
Computes available space of all upstream reservoirs.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes available space in reservoirs in list.
Return Type: NUMERIC
Arguments:
Body
Constraints
Referenced Functions
Computes hydrologic inflow forecast volume by slot to a reservoir without any forecast error applied.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Returns true is specified event as occurred in current year.
Return Type: BOOLEAN
Arguments:
Body
Referenced Functions
Computes minimum of average daily flows of San Juan of four references gages.
Return Type: NUMERIC
Arguments: None
Body
Referenced Functions
Return Type: BOOLEAN
Arguments: None
Body
Returns adjusted flushing release peak begin date.
Return Type: DATETIME
Arguments:
Body
Referenced Functions
Returns adjusted flushing release peak end date.
Return Type: DATETIME
Arguments:
Body
Referenced Functions
Return start date appropriate for adjustments.
Return Type: DATETIME
Arguments: None
Body
Referenced Functions
Determines slot to adjust.
Return Type: SLOT
Arguments: None
Body
Referenced Functions
Computes average release volume given release type.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Adjusts baseflow bypasses for case when we missed the appropriate baseflow method's seven day average.
Because this case is rarely encountered, we chose to do a brute force adjustment that takes care of
negative outflows and meets baseflow requriements. It is brute force because when we have a baseflow shortfall,
we are providing adjusted bypass to all four gages. This case appears to occur when the gage combination
changes. Applying the adjustment to all 4 gages should keep the gage combination from changing again.
Return Type: LIST
Arguments: None
Body
Referenced Functions
Adjusts baseflow bypasses for case when we missed the appropriate baseflow method's seven day average.
Because this case is rarely encountered, we chose to do a brute force adjustment that takes care of
negative outflows and meets baseflow requriements. It is brute force because when we have a baseflow shortfall,
we are providing adjusted bypass to all four gages. This case appears to occur when the gage combination
changes. Applying the adjustment to all 4 gages should keep the gage combination from changing again.
Return Type: LIST
Arguments: None
Body
Referenced Functions
Computes release adjusted for excess water as a function of conditions.
Return Type: LIST
Arguments:
Body
Referenced Functions
Computes bypass flow given accumulated volume for timesteps of interest and target flow.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes release adjusted for extension of peak back loaded to hydrograph.
Return Type: LIST
Arguments:
Body
Referenced Functions
Computes release adjusted for extension of peak centered around peak.
Return Type: LIST
Arguments:
Body
Referenced Functions
Computes release adjusted for extension of peak front loaded to hydrograph.
Return Type: LIST
Arguments:
Body
Referenced Functions
Computes release modified for release extensions or curtailments.
Return Type: LIST
Arguments:
Body
Referenced Functions
Computes expected benefit of ALP mitigation operations.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Flags if flood control should be computed.
Return Type: BOOLEAN
Arguments: None
Body
Referenced Functions
Flags if flood control should be computed.
Return Type: BOOLEAN
Arguments: None
Body
Referenced Functions
Computes operation release adjusted for flushing release. Any water before the peak should be released as a spike.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes volume before start of peak.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Sets flushing flows release type as a function of path, spill, and available water.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Sets flushing flows release type as a function of path, spill, and available water.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Sets flushing flows release type as a function of path, spill, and available water.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Sets flushing flows release type as a function of path, spill, and available water.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Return Type: LIST
Arguments:
Body
Referenced Functions
Makes a list of historic release types.
Return Type: LIST
Arguments:
Body
Referenced Functions
Integrates unadjusted release with extended peak.
Return Type: LIST
Arguments:
Body
Referenced Functions
Computes maximum forced release type as a function of absolute maximum amount of water that we can release.
Return Type: NUMERIC
Arguments: None
Body
Referenced Functions
Computes maximum flushing release given supply.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Adjusts baseflow bypasses using maximum two gage method.
Return Type: LIST
Arguments: None
Body
Referenced Functions
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Determines if minimum volume need to make a release iis available.
Return Type: BOOLEAN
Arguments: None
Body
Referenced Functions
Computes second pass bypasses using minimum two gage method.
Return Type: LIST
Arguments: None
Body
Referenced Functions
Computes flood control release by a short term look and long term COE look.
Return Type: NUMERIC
Arguments: None
Body
Referenced Functions
Computes flood control release by a short term look and long term COE look.
Return Type: NUMERIC
Arguments: None
Body
Referenced Functions
Computes operation release while accounting for flushing volumes.
Return Type: NUMERIC
Arguments: None
Body
Referenced Functions
Computes Navajo normal operations release
Return Type: NUMERIC
Arguments: None
Body
Referenced Functions
Determines if any release has been made in specified nears.
Return Type: BOOLEAN
Arguments:
Body
Referenced Functions
Determines if the maxmimum release has been made in specific years.
Return Type: BOOLEAN
Arguments:
Body
Referenced Functions
Flags if an operation release should be computed.
Return Type: BOOLEAN
Arguments: None
Body
Computes optimum flushing release given supply.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Constrains requested flow for ramping criteria.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Ramps release to logical increments.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Returns true if a release is needed.
Return Type: BOOLEAN
Arguments: None
Body
Returns true is a release is required.
Return Type: BOOLEAN
Arguments: None
Body
Computes release priority given release type.
Return Type: NUMERIC
Arguments:
Body
Computes incremental flushing volume for remainder of season from adjusted hydrograph.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Sets path by 1996 BO Flow Recseration decision tree.
Return Type: NUMERIC
Arguments: None
Body
Referenced Functions
Sets path by 1996 BO Flow Recseration decision tree.
Return Type: NUMERIC
Arguments: None
Body
Referenced Functions
Sets path by 1996 BO Flow Recseration decision tree.
Return Type: NUMERIC
Arguments: None
Body
Referenced Functions
Sets path by 1996 BO Flow Recseration decision tree.
Return Type: NUMERIC
Arguments: None
Body
Referenced Functions
Computes supplemental bypass as a function of baseflow method and first pass flows.
Return Type: NUMERIC
Arguments: None
Body
Referenced Functions
Returns target release type as a function of event return periods.
Return Type: NUMERIC
Arguments: None
Body
Computes three gage adjusted bypasses.
Return Type: LIST
Arguments: None
Body
Referenced Functions
Computes three gage adjusted bypasses.
Return Type: LIST
Arguments: None
Body
Referenced Functions
Computes bypass flows using the three gage criteria.
Return Type: LIST
Arguments: None
Body
Referenced Functions
Flags if water supply rules for flushing decisions should fire.
Return Type: BOOLEAN
Arguments: None
Body
Computes bypass flows using the three gage criteria.
Return Type: LIST
Arguments: None
Body
Referenced Functions
Computes release after runoff season by attempting to get reservoir to a target December space
requirement (ReservoirData.targetSpace December). Computes forecasted inflow for remainder of
year for subbasins AboveReservoirHydrology, AboveReservoirDepletions and AboveReservoirExports
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes release after runoff season by attempting to get reservoir to a target December space
requirement (ReservoirData.targetSpace December). Computes forecasted inflow for remainder of
year for subbasins AboveReservoirHydrology, AboveReservoirDepletions and AboveReservoirExports
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes release after runoff season by attempting to get reservoir to a target December space
requirement (ReservoirData.targetSpace December). Computes forecasted inflow for remainder of
year for subbasins AboveReservoirHydrology, AboveReservoirDepletions and AboveReservoirExports
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes after peak volume for a reservoir by slot with no forecast error applied.
Uses table ReservoirData.targetSpace December value.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes volume to release after the runoff season by attempting to get reservoir to a target December space
requirement (ReservoirData.targetSpace December). Computes forecasted inflow for remainder of year for
subbasins AboveReservoirHydrology, AboveReservoirDepletions and AboveReservoirExports.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes volume to release after the runoff season by attempting to get reservoir to a target December space requirement.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
omputes available storage water.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes available storage water.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes daily maximum storage as a function of daily maximum elevation.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Interpolates daily minimum elevation from monthly table ReservoirData.MinElevation.
Return Type: NUMERIC
Arguments:
Body
Computes daily minimum storage as a function of daily minimum elevation
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes flood control release with forecast by slot.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes flood control storage limit with forecast from a slot.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Guarantees that reservoir meets instream flow requirement (ReservoirData.MinRelease)
and downstream demands while not violating monthy maximum release (ReservoirData.MaxRelease).
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Checks for maximum and minimum elevation constraints expressed in table
ReservoirData.MinElevation and ReservoirData.MaxElevation.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Attempts to meet instream flow requirement (ReservoirData.MinRelease)
while not violating maximum release (ReservoirData.MaxRelease) while also attempting to meet min
and max elevation constraints (ReservoirDataMinElevation and ReservoirData.MaxElevation) are met.
Preference is given to release constraints.
Return Type: NUMERIC
Arguments:
Body
Guarantees that reservoir meets instream flow requirement (ReservoirData.MinRelease)
while not violating monthy maximum release (ReservoirData.MaxRelease).
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Returns minimum available water as reservoir storage.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Guarantees that reservoir meets instream flow requirement (ReservoirData.MinRelease)
and downstream demands while not violating monthy maximum release (ReservoirData.MaxRelease)
and that min and max elevation constraints (ReservoirDataMinElevation and
ReservoirData.MaxElevation) are met.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Guarantees that reservoir meets monthly instream flow requirement (ReservoirData.MinRelease)
while not violating monthy maximum release (ReservoirData.MaxRelease) and that monthly min
and max elevation constraints (ReservoirDataMinElevation and ReservoirData.MaxElevation) are met.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Attempts to meet instream flow requirement (ReservoirData.MinRelease)
while not violating maximum release (ReservoirData.MaxRelease) while also attempting to meet min
and max elevation constraints (ReservoirDataMinElevation and ReservoirData.MaxElevation) are met.
Preference is given to elevation constraints.
Return Type: NUMERIC
Arguments:
Body
Adjust release to respect maximum elevation.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Adjust release to respect minimum elevation.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes release as a function of monthly flood control storage and channel capacity.
Channel capacity is respected until live capacity is encroached.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes Corp of Engineers Flood Control allowable storage given flood season forecast using table FloodControlTables.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes maximum storage that we can be at today given a forecast thru endDate
and the maximum daily release (maxRelease).
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Attempts to fill reservoir without spilling by a specified filling date
during runoff season. Runoff season is assumed to start in
January. This is the Fill and Not Spill rule.
The flow of a given time step is a fraction from a lookup table
times estimated surplus volume above filling volume.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Attempts to fill reservoir without spilling by a specified filling date
during runoff season. Runoff season is assumed to start in
January. This is the Fill and Not Spill rule.
The flow of a given time step is a fraction from a lookup table
times estimated surplus volume above filling volume.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes flood control release for a daily time step as function of today's maximum storage
and today's flood control storage.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Attempts to fill reservoir without spilling by a specified filling date
during runoff season. Runoff season is assumed to start in
January. This is the Fill and Not Spill rule.
The flow of a given time step is a fraction from a lookup table
times estimated surplus volume above filling volume.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes surplus volume from inflows less depletions stored in specified slot.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Estimates volume that will be surplus in reservoir accouunting for existing
storage and anticipated upstream inflows and depletions.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes total available water (surplus plus storage less reserve).
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes total available water (surplus plus storage less reserve).
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Interpolates daily forecast error percents from monthly values. Note that the monthly values are actually for the first day of the month.
Therefore the first day of each month in the daily return should correspond to the monthly value.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes hydrologic inflow forecast volume for a reservoir by slot with forecast error applied.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes hydrologic inflow forecast volume for a reservoir by subbasin with no forecast error applied.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes hydrologic inflow forecast volume for a reservoir by subbasin with forecast error applied.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Returns previous forecast error given reservoir name.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Sums anticipated depletions and exports for a resevoir.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Sums all user provided inflows and local inflows for a subbasin upstream of
a reservoir in a given period. Subbasin name is specified as 'AboveReservoirReservoirs'.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes unregulated inflow volume without error from specified slot.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes unregulated inflow from hydrology slot and forecast error slot.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes unregulated inflow forecast volume for a reservoir by subbasin without forecast error applied.
Return Type: NUMERIC
Arguments:
Body
Computes unregulated inflow forecast volume for a reservoir by subbasin with forecast error applied.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes supplemental release from Ridges Basin to meet minimum flow restrictions on San Juan.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes bypass for fish purposes. Pumping Limit = Constraining Flow - Bypass.
Bypass = Contstraining Flow - Pumping Limit.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes bypass for fish purposes. Pumping Limit = Constraining Flow - Bypass.
Bypass = Contstraining Flow - Pumping Limit.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Only limits pumping in June.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Only restricts pumping in June.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Returns minimum estimated flow of San Juan at Farmington, Shiprock, Stateline, and Bluff.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes net affect of ALP on Animas At Farmington.
Return Type: NUMERIC
Arguments: None
Body
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes diversion shortages of historic water users downstream of ALP.
Return Type: NUMERIC
Arguments: None
Body
Computes normal bypass of pumping plant.
Return Type: NUMERIC
Arguments: None
Body
Referenced Functions
Computes normal bypass of pumping plant.
Return Type: NUMERIC
Arguments: None
Body
Referenced Functions
Return Type: NUMERIC
Arguments: None
Body
Computes Durango daily direct flow supply.
Return Type: NUMERIC
Arguments: None
Body
Referenced Functions
Set daily diversion limit in terms of pump limitations and available for diversion.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Return Type: NUMERIC
Arguments: None
Body
Estimates return flows from ALP water users.
Return Type: NUMERIC
Arguments:
Body
Estimates returns that must be bypasses by water users upstream of reservoir release.
Return Type: NUMERIC
Arguments: None
Body
Return Type: NUMERIC
Arguments: None
Body
Does a crude check on inactive capacity and check of outlet works capacity.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Inserts a value and date set into a list of flows and dates.
Return Type: LIST
Arguments:
Body
Inserts specified slot and value into a list.
Return Type: LIST
Arguments:
Body
Makes a list of daily values for a given value.
Return Type: LIST
Arguments:
Body
Creates a list given an initial value, an inrement, and a maximum.
Return Type: LIST
Arguments:
Body
Creates a list of values given an inital value, an incremental value, and number of points.
Return Type: LIST
Arguments:
Body
Referenced Functions
Returns a list of values and dates.
Return Type: LIST
Arguments:
Body
Makes a list of lists of slots and values
Return Type: LIST
Arguments:
Body
Proportions a list of daily flow values by user provided ratio.
Return Type: LIST
Arguments:
Body
Referenced Functions
Subsets a list for specified first and last indices.
Return Type: LIST
Arguments:
Body
Referenced Functions
Returns a numeric list after subtracting 2 lists.
Return Type: LIST
Arguments:
Body
Referenced Functions
Returns days in month as NONE units.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Returns number of days in specfied period.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes Period Average
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes average of last six days.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Returns beginning of month date given a date.
Return Type: DATETIME
Arguments:
Body
Referenced Functions
Computes average daily flow given a volume and period.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Returns date corresponding to last day of previous month.
Return Type: DATETIME
Arguments:
Body
Referenced Functions
Computes apparent depletion for a mutiple return flow water user. Water user has to already have fired.
Return Type: NUMERIC
Arguments:
Body
Computes apparent depletion for a single return flow water user. Water user has to already have fired.
Return Type: NUMERIC
Arguments:
Body
Computes diversion request at maximum efficiency
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes efficiency as a function of diversion.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes Regional Diversion Shortage
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes Regional Shortage
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes apparent depletion for specified subbasin for diversions not
involved whole or partially in an export.
Return Type: NUMERIC
Arguments:
Body
Takes the water users of a subbasin with only one return flow and finds the sum of the apparent depletions.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Takes the water users in a subbasin with multiple return flows and finds the sums of the apparent depletions.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Computes sums of a diversion slot for a subbasin. User creates subbasin as an export.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Returns sum of total available water for a region.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Sums region (subbasin DownstreamRegion) depletion request.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Sums region (subbasin DownstreamRegion) diversion request.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions
Calls GetRegionDepletionShortage and returns TRUE if depletion shortage is greater
than 0.0.
Return Type: BOOLEAN
Arguments:
Body
Calls GetRegionDiversionShortage and returns TRUE if diversion shortage is greater
than 0.0.
Return Type: BOOLEAN
Arguments:
Body
Return Type: BOOLEAN
Arguments:
Body
Return Type: BOOLEAN
Arguments:
Body
Sums diversion request of a region.
Return Type: NUMERIC
Arguments:
Body
Referenced Functions